/**
 * Created by luckyjing on 16/3/27.
 */
var rentController = require('../controllers/rent.server.controller');
var Util = require('../util/util');
module.exports = function (app) {
    app.route('/rent')
        .get(Util.requireLogin, rentController.list)
        .post(Util.requireLogin, rentController.addRent);
    app.route('/rent/:id')
        .post(Util.requireLogin, rentController.changeRent);
    app.route('/check/:id')
        .post(Util.requireLogin,rentController.checkRent)
};